package ejb.facade;

import ejb.entities.User;
import java.util.List;

import javax.ejb.Local;


@Local
public interface UserFacade {
	public abstract void save(User u);

	public abstract User update(User u);

	public abstract void delete(User u);

	public abstract User find(int entityID);

	public abstract List<User> findAll();

        public abstract User findUserByUsername(String username);
        
	public abstract User findUserByEmail(String userEmail);
	
	public abstract boolean updatePassword(User u, String oldpwd,String newpwd);
	
	public abstract boolean saveNewUser(User u);
	
	public abstract boolean updateUser(User u);
	
}
